package com.ihr360.rest.core;


import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Annotation to tie a particular projection type to a source type. Used to find projection interfaces at startup time.
 *
 * @author David
 */
@Inherited
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE, ElementType.ANNOTATION_TYPE })
public @interface Ihr360Projection {

    /**
     * The type the projection type is bound to.
     *
     * @return
     */
    Class<?>[] types();

    /**
     * The name of projection to refer to.
     *
     * @return
     */
    String name() default "";
}